/*
 * Copyright (c) 2009, Jan Pastor. All Rights Reserved.
 */

package sk.jp.commons.utils;

/**
 * Value holder class used in anonymous inner classes to access final fields.
 * 
 * @author igor.mihalik
 * 
 * @param <T>
 */
public class ValueHolder<T> {

    private T value;

    public ValueHolder(T value) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return value.toString();
    }

}
